package com.firexxx.study.designmodel.dutychain;

/**
 * @description: TODO
 * @throws:
 * @author: zhuangzhang2
 * @date: 2019/11/14 14:57
 */
public class OneHandler extends AbstractHandler {
    @Override
    public boolean deal(String data) {
        if (data.equals("one")) {
            System.out.println("i can do!");

            return true;
        }

        System.out.println("i need help!");
        return false;
    }
}